﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using $safeprojectname$.Business.Services;
using $prjsn$.Entity.Services;

using ProjectBase.Core;
using ProjectBase.Core.Service;

namespace $safeprojectname$
{
    public class Project : Global
    {
        #region Project Settings
        public new static IProjectSettings Settings
        {
            get { return Provider.ProjectSettings; }
        }
        #endregion Project Settings

        #region protected Provider
        protected static IProjectSettingsProvider Provider
        {
            get { return BaseProvider as IProjectSettingsProvider; }
        }
        #endregion protected Provider

        #region languages
        public static IEnumerable<Lang> GetLanguages()
        {
            return LangFacade.GetAll();
        }

        static ILangFacade _langFacade;
        static ILangFacade LangFacade
        {
            get { return _langFacade ?? (_langFacade = Factory.CreateInstance<ILangFacade>()); }
        }
        #endregion languages
    }
}